package HibernateBeans;

import java.io.Serializable;
import java.sql.Date;

public class Invoice implements Serializable{
CustomerDetails custd;
int invoice_id; 
String user_id;
Date bill_date;
Date due_date;
double bill_amount;

public Invoice(Date bill_date, Date due_date,
		int bill_amount) {
	this.bill_date = bill_date;
	this.due_date = due_date;
	this.bill_amount = bill_amount;
}
public Invoice() {
}

	public int getInvoice_id() {
		return invoice_id;
	}

	public void setInvoice_id(int invoice_id) {
		this.invoice_id = invoice_id;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public Date getBill_date() {
		return bill_date;
	}

	public void setBill_date(Date bill_date) {
		this.bill_date = bill_date;
	}

	public Date getDue_date() {
		return due_date;
	}

	public void setDue_date(Date due_date) {
		this.due_date = due_date;
	}

	public double getBill_amount() {
		return bill_amount;
	}

	public void setBill_amount(double bill_amount) {
		this.bill_amount = bill_amount;
	}
	public CustomerDetails getCustd() {
		return custd;
	}
	public void setCustd(CustomerDetails custd) {
		this.custd = custd;
	}
	@Override
	public String toString() {
		return "Invoice [custd=" + custd + ", invoice_id=" + invoice_id
				+ ", user_id=" + user_id + ", bill_date=" + bill_date
				+ ", due_date=" + due_date + ", bill_amount=" + bill_amount + "]";
	}

}